/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.pm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 项目表----暂时存在此地，若加项目管理模块 新建微服务
 *
 * @author Chill
 */
@Data
@TableName("blade_xmgl_project")
@EqualsAndHashCode(callSuper = true)
public class XmglProject extends BaseEntity {

	private static final long serialVersionUID = 1L;
	/**
	 * 主键id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(value = "主键id")
	private Integer id;

	/**
	 * 项目名称
	 */
	@ApiModelProperty(value = "项目名称")
	private String name;
	/**
	 * 项目编号
	 */
	@ApiModelProperty(value = "项目编号")
	private String code;
	/**
	 * 合同编号
	 */
	@ApiModelProperty(value = "合同编号")
	private String contractNo;
	/**
	 * 公司id
	 */
	@ApiModelProperty(value = "公司id")
	private String gsid;
	/**
	 * 所属公司
	 */
	@ApiModelProperty(value = "所属公司")
	private String ssgs;

	@ApiModelProperty(value = "部门Id")
	private String deptId;

	/**
	 * 所属部门
	 */
	@ApiModelProperty(value = "所属部门")
	private String dept;
	/**
	 * 项目负责人
	 */
	@ApiModelProperty(value = "项目负责人")
	private String leader;
	/**
	 * 计划开始时间
	 */
	@ApiModelProperty(value = "计划开始时间")
	private LocalDate scheduledStartTime;
	/**
	 * 计划结束时间
	 */
	@ApiModelProperty(value = "计划结束时间")
	private LocalDate scheduledEndTime;
	/**
	 * 项目天数
	 */
	@ApiModelProperty(value = "项目天数")
	private Integer days;
	/**
	 * 项目状态
	 */
	@ApiModelProperty(value = "项目状态")
	private Integer projectStatus;

	/**
	 * 项目描述
	 */
	@ApiModelProperty(value = "项目描述")
	private String projectDescribe;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer orderby;

	/**
	 * 剩余时间
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "剩余时间")
	private Long reserveTime;

	/**
	 * 预算金额
	 */
	@ApiModelProperty(value = "预算金额")
	private BigDecimal budgetAmount;
	/**
	 * svn地址
	 */
	@ApiModelProperty(value = "svn地址")
	private String svnUrl;
	/**
	 * 项目模型
	 */
	@ApiModelProperty(value = "项目模型")
	private Integer model;
	/**
	 * 项目类型
	 */
	@ApiModelProperty(value = "项目类型")
	private String projectType;
	@TableField(exist = false)
	@ApiModelProperty(value = "字符型开始时间")
	private String begin;
	@TableField(exist = false)
	@ApiModelProperty(value = "字符型结束时间")
	private String end;

	@ApiModelProperty(value = "当前阶段")
	private Integer currentStage;

	@ApiModelProperty(value = "售前编号")
	private String presaleNo;

	@ApiModelProperty(value = "项目性质")
	private Integer developPattern;

	@ApiModelProperty(value = "预算人力")
	private Integer budgetManpower;

	@ApiModelProperty(value = "项目名称简写")
	private String projectAbb;

	@ApiModelProperty(value = "是否有合同，0否1是'")
	private Integer isContract;

	@ApiModelProperty(value = "是否外包项目，0否1是")
	private Integer isAssociation;

	@ApiModelProperty(value = "客户公司")
	private String clientCompany;

	@ApiModelProperty(value = "客户联系人")
	private String clientContact;

	@ApiModelProperty(value = "客户联系方式")
	private String clientTel;

}
